<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-引入</title>
    <script src="../js/jquery-3.6.0.js"></script>
    <script>
      var mydiv = $("#mydiv");
      console.log(mydiv);
    </script>
</head>
<body>
    <div id="mydiv">文本</div>
</body>
</html>